class Solution:
    def checkString(self, s: str) -> bool:
        return "ba" not in s
